package com.medical.sys.mapper;

import com.medical.sys.model.Organization;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface OrganizationMapper {
    int deleteByPrimaryKey(String id);

    int insert(Organization record);

    Organization selectByPrimaryKey(String id);

    List<Organization> selectByParentId(String parentId);

    List<Organization> selectAll(Boolean administrator);

    int updateByPrimaryKey(Organization record);
    
    List<Organization> selectFirstOrganization();
    
    Organization selectByName(String name);
    
}